package cn.csc.module.distribute.api.order.dto;

import cn.csc.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
public class DistributeOrderDTO extends BaseDO {

    @ApiModelProperty(value = "id")
    private BigInteger id;
    @ApiModelProperty(value = "查询的分销员用户ID")
    private Long userId;

    @ApiModelProperty(value = "订单ID")
    private BigInteger orderId;

    @ApiModelProperty(value = "订单子项ID")
    private BigInteger orderItemId;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "分佣比例")
    private Integer commissionRate;

    @ApiModelProperty(value = "类目Id，用于取佣金比例")
    private String categoryId;
    /**
     * 订单状态
     */
    @ApiModelProperty(value = "订单状态", required = true)
    private Integer orderStatus;

    @ApiModelProperty(value = "支付时间", required = true)
    private LocalDateTime payTime;

    @ApiModelProperty(value = "下线，下单用户Id")
    private BigInteger childId;
}
